package com.jdk.demo.nio.bilibili.Maodun.net.qiujuer.library.clink.box;

import java.io.IOException;

import com.jdk.demo.nio.bilibili.Maodun.net.qiujuer.library.clink.core.SendPacket;

public class StringSendPacket extends SendPacket {

	private final byte[] bytes;

	public StringSendPacket(String msg) {
		this.bytes = msg.getBytes();
		this.length = bytes.length;
	}

	@Override
	public byte[] bytes() {
		return bytes;
	}

	@Override
	public void close() throws IOException {

	}

}
